<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>分类</title>
<#include "/public_include/easyui-allresource.html">
</head>
<body>
	<!--总容器 -->
	<div class="container bs-docs-container" style="width:100%;">
		<!--页面一共就1行,通过1行把内容3,9分 -->
		<div class="row col-md-12">
			<div class="panel panel-success">
					<div class="panel-heading">
					      <div class="container-fluid">
					          <form class="navbar-form navbar-left" role="search" action="<@url url='/cat'/>" method="post">
					            <a href="<@url url='/cat/new'/>" type="button" class="btn btn-success">添加</a>
					            <div class="form-group">
					              <input type="text" class="form-control" name="company_name_like" placeholder="<@url url='/admin/main'/>">
					            </div>
					            <button type="submit" class="btn btn-info">搜索</button>
					          </form>
					      </div>
					</div>
						<table class="table">
							<thead>
								<tr>
									<th><i class="fa fa-smile-o"></i></th>
									<th>分类名称</th>
									<th>分类路径</th>
									<th>是否有子类</th>
									<th>指向URL</th>
									<th>排序</th>
									<th>操作</th>
								</tr>
							</thead>
							<tbody>
								<#list pager.pagerModel.dataList as cat>
									<tr>
										<th scope="row">${cat.cat_id}</th>
										<td>${cat.cat_name}</td>	
										<td>${cat.cat_path}</td>
										<td>
											<#if cat.has_child == 1>
											  有
											</#if>
											<#if cat.has_child == 0>
											  无
											</#if>
										</td>
										<td>${cat.url}</td>
										<td>${cat.cat_order}</td>
										<td>
											<a href="<@url url='/cat/edit/${cat.cat_id}'/>" class="btn btn-default"><i class="fa fa-pencil-square fa-2"></i></a>
											<a href="<@url url='/cat/delete/${cat.cat_id}'/>" class="btn btn-default"><i class="fa fa-eraser fa-2"></i></a>
										</td>
									</tr>
								</#list>
							</tbody>
						</table>
					</div>
					<#import "*/lib/pagination.html" as mypager><@mypager.pagination pager=pager/>
			</div>
		</div>
	</div>
</body>
</html>